package com.example.myblog.service;

import com.example.myblog.entity.Like;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.myblog.exception.BaseException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 叶兴
 * @since 2022-09-29
 */
public interface LikeService extends IService<Like> {

    int insertLikeArticle(String blogId) throws BaseException;

    boolean hasLikeBlog(String blogId) throws BaseException;

    boolean hasLikeComment(Integer commentId) throws BaseException;

    int insertLikeComment(String blogId,Integer commentId) throws BaseException;
}
